<?php

namespace app\common\validate\crm;

use think\Validate;

/**
 * 功能介绍:费用输入验证表单
 * @author lvyubing
 * @date 2022/7/29
 * @copyright ©2022 泉州市盛筑信息科技有限公司 版权所有
 */
class Consume extends Validate
{
    protected $rule = [
        'user_id' => 'require',
        'consume_date' => 'require',
        'money' => 'require|lt:1000|gt:0',
    ];
    protected $message = [
        'user_id.require' => '请先登录网站',
        'consume_date.require' => '请输入消费日期',
        'money.require' => '请输入消费金额',
        'money.lt' => '单次不能消费金额超过1000元',
        'money.gt' => '单次不能消费金额低于0元',
    ];
}